package com.example.facemanager.config;

/**
 * @Author huchenying
 * @Date 2022/8/3 13:39
 * @Description 百度人脸识别API Info
 */
public enum ApiInfo {
    ADD_USER_GROUP("添加用户组", "https://aip.baidubce.com/rest/2.0/face/v3/faceset/group/add", "https://cloud.baidu.com/doc/FACE/index.html"),
    Query_USER_GROUP("查询用户组", "https://aip.baidubce.com/rest/2.0/face/v3/faceset/group/getlist", "https://cloud.baidu.com/doc/FACE/index.html"),
    DELETE_USER_GROUP("删除用户组", "https://aip.baidubce.com/rest/2.0/face/v3/faceset/group/delete", "https://cloud.baidu.com/doc/FACE/index.html"),
    ADD_USER("添加用户", "https://aip.baidubce.com/rest/2.0/face/v3/faceset/user/add", "https://cloud.baidu.com/doc/FACE/index.html"),
    GET_USER("查找用户列表", "https://aip.baidubce.com/rest/2.0/face/v3/faceset/group/getusers", "https://cloud.baidu.com/doc/FACE/index.html"),
    DELETE_USER("删除用户", "https://aip.baidubce.com/rest/2.0/face/v3/faceset/face/delete", "https://cloud.baidu.com/doc/FACE/index.html"),
    SEARCH_USER("搜索用户", "https://aip.baidubce.com/rest/2.0/face/v3/search", "https://cloud.baidu.com/doc/FACE/index.html");
    private String desc;
    private String url;
    private String address;

    ApiInfo() {
    }

    ApiInfo(String desc, String url, String address) {
        this.url = url;
        this.desc = desc;
        this.address = address;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
